<template>
    <div id="HaiTao">
        <commonList :goodsList="goodsList" :loaderUl="loaderUl"></commonList>
    </div>
</template>

<script>
import commonList from "./commonList";
export default {
  data() {
    return {
      goodsList: [],
      loaderUl: "http://api2.nahuo.com/v3/pinhuoitem/activity/GetRecommendList"
    };
  },
  components: {
    commonList
  },
  activated() {
    var _this = this;
    this.$http
      .get(_this.loaderUl)
      .then(function(response) {
        _this.goodsList = response.data.Data.List[0].Datas;
      })
      .catch(function(error) {
        console.log(error);
      });
  }
};
</script>

<style lang="scss" scoped>
</style>
